Skip to main content

All Questions

Tagged with
0votes
0answers
147views

Disable everything but a hidden command for root access

linux security and root access question.... I'm setting up a server that has a validator node running on it for a blockchain. I was trying to harden the security of my server. I set up ufw for all ...
brent-franklin's user avatar
0votes
0answers
219views

Missing basic commands. Stuck without being able to install anything

I am accessing the machine through SSH, I am root. Tried getting the Linux version with hostnamectl Got -sh: hostnamectl: command not found Same for lsb_release, sudo, apt-get, yum, dpkg, etc. I got ...
DeepBlue's user avatar
2votes
0answers
837views

Broken SSH sudo - parse error in /etc/sudoers

Today I run into ironic and awful situation - I have broken sudo command. I don't have physical connection to the machine. The only way I can access server is via SSH. So firstly I connected as "...
devKanapka's user avatar
1vote
3answers
3kviews

SSH + Change password using root

I'm trying to connect to various servers to change the password of a specific user. I need to build a Script to do that thing, the complexity is that I have to use sudo and send the password in order ...
Jose's user avatar
2votes
0answers
5kviews

Letting jenkins execute commands as root [closed]

I have a jenkins server which logs into my production server via ssh and is supposed to restart some services with systemctl restart myservice.service I've read similar issues and the most common ...
gempir's user avatar
4votes
2answers
4kviews

Why does this ssh command not work? (cat ./file | ssh <user@host> "cat | sudo -t -t 'cat > /root/location/file'")

I'm trying to do the following but it's not quite right. cat ~/Desktop/blah.png | ssh -t -t [email protected] "cat | sudo -i 'cat | /path/to/blah.png'" I have my public ssh key in the trusktr@50....
trusktr's user avatar
  • 4,313
2votes
5answers
8kviews

Run local scripts on multiple servers using sudo user through a script

I have about 100 remote servers. I want to manage all my servers using one terminal server to update , run commands with sudo privileges. I need to have one main script that takes another test script ...
Shashi's user avatar

close